﻿@using Microsoft.AspNetCore.Components.Web
@namespace Masa.Dcc.Web.Admin.Server.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="shortcut icon" href="https://cdn.masastack.com/stack/images/logo/MASAStack/logo16_16.png">
    <base href="~/" />
    <link href="_content/Masa.Blazor/css/masa-blazor.min.css" rel="stylesheet">
    <link href="https://cdn.masastack.com/npm/@("@mdi")/font@5.x/css/materialdesignicons.min.css" rel="stylesheet">
    <link href="https://cdn.masastack.com/npm/materialicons/materialicons.css" rel="stylesheet">
    <link href="https://cdn.masastack.com/npm/fontawesome/v5.0.13/css/all.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.masastack.com/stack/fonts/roboto/font-roboto.css">
    <link href="_content/Masa.Stack.Components/css/app.css" rel="stylesheet">
    <link href="_content/Masa.Dcc.Web.Admin.Rcl/css/masa-dcc.css" rel="stylesheet" />
    <link href="Masa.Dcc.Web.Admin.Server.styles.css" rel="stylesheet" />
    <component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />
</head>

<body>
    @RenderBody()
    <script src="_framework/blazor.server.js"></script>
    <script src="_content/Masa.Blazor/js/masa-blazor.js"></script>
    <script src="_content/Masa.Stack.Components/js/components.js"></script>
    <script src="https://cdn.masastack.com/npm/echarts/5.1.1/echarts.min.js"></script>
    <script src="https://cdn.masastack.com/npm/aliyun/aliyun-oss-sdk.min.js"></script>
    <script src="_content/Masa.Stack.Components/js/oss/upload.js"></script>
    <script>
        window.PreventTab = function (element) {
            element.onkeydown = function (e) {
                if (e.key == "Tab") {
                    e.preventDefault();
                    let start = element.selectionStart;
                    element.value = element.value.substring(0, start) + "\t" + element.value.substring(start, element.value.length);
                    element.selectionStart = start + 1;
                    element.selectionEnd = start + 1;
                }
            }
        }
    </script>
    <script>
        var require = { paths: { 'vs': 'https://cdn.masastack.com/npm/monaco-editor/0.34.1/min/vs' } };
    </script>
    <script src="https://cdn.masastack.com/npm/monaco-editor/0.34.1/min/vs/loader.js"></script>
    <script src="https://cdn.masastack.com/npm/monaco-editor/0.34.1/min/vs/editor/editor.main.nls.js"></script>
    <script src="https://cdn.masastack.com/npm/monaco-editor/0.34.1/min/vs/editor/editor.main.js"></script>

</body>

</html>
